import $ from 'jquery'
import _tools from '../framework/commonJs/wptx_tools'
import _request from '../utils/request'
const _FUNCTION_NAME = 'portalapi/'
const _FUNCTION = 'prod-api/'

/* 省市区 地址查询*/
export function _getAreasByPcode(query) {
  return _request({
    url: 'area/getAreasByPcode',
    method: 'get',
    params: query
  })
}
/* 订单结算页获取地址*/
export function _userAddressPage(data) {
  return _request({
    url: _FUNCTION + 'userAddress/page',
    method: 'post',
    data
  })
}
/* 订单结算页 删除地址*/
export function _userAddressDelete(data) {
  return _request({
    url: _FUNCTION + 'userAddress/delete',
    method: 'post',
    data
  })
}
/* 订单结算页 回显请求 */

export function _getHousingEstateList(data) {
  return _request({
    url: _FUNCTION + 'cHousingEstate/getHousingEstateList',
    method: 'post',
    data
  })
}
